﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Data.Linq.Mapping;
using System.Runtime.Serialization;

namespace RaisingStudio.Data.Entities
{
    /// <summary>
    /// Supplier
    /// </summary>
    [Serializable]
    [DataContract]
    [Table(Name = "Supplier")]
    partial class Supplier
    {
        #region Members

        private int _SuppId;
        /// <summary>
        /// SuppId
        /// </summary>
        [Description("SuppId")]
        [DataMember]
        [Column(Name = "SuppId", DbType="BIGINT", CanBeNull = false, IsDbGenerated=true, IsPrimaryKey = true)]
        public int SuppId
        {
          get 
          {
              return this._SuppId;
          }
          set 
          {
              this._SuppId = value;
          }
        }


        private string _Name;
        /// <summary>
        /// Name
        /// </summary>
        [Description("Name")]
        [DataMember]
        [Column(Name = "Name")]
        public string Name
        {
          get 
          {
              return this._Name;
          }
          set 
          {
              this._Name = value;
          }
        }


        private string _Status;
        /// <summary>
        /// Status
        /// </summary>
        [Description("Status")]
        [DataMember]
        [Column(Name = "Status", CanBeNull = false)]
        public string Status
        {
          get 
          {
              return this._Status;
          }
          set 
          {
              this._Status = value;
          }
        }


        private string _Addr1;
        /// <summary>
        /// Addr1
        /// </summary>
        [Description("Addr1")]
        [DataMember]
        [Column(Name = "Addr1")]
        public string Addr1
        {
          get 
          {
              return this._Addr1;
          }
          set 
          {
              this._Addr1 = value;
          }
        }


        private string _Addr2;
        /// <summary>
        /// Addr2
        /// </summary>
        [Description("Addr2")]
        [DataMember]
        [Column(Name = "Addr2")]
        public string Addr2
        {
          get 
          {
              return this._Addr2;
          }
          set 
          {
              this._Addr2 = value;
          }
        }


        private string _City;
        /// <summary>
        /// City
        /// </summary>
        [Description("City")]
        [DataMember]
        [Column(Name = "City")]
        public string City
        {
          get 
          {
              return this._City;
          }
          set 
          {
              this._City = value;
          }
        }


        private string _State;
        /// <summary>
        /// State
        /// </summary>
        [Description("State")]
        [DataMember]
        [Column(Name = "State")]
        public string State
        {
          get 
          {
              return this._State;
          }
          set 
          {
              this._State = value;
          }
        }


        private string _Zip;
        /// <summary>
        /// Zip
        /// </summary>
        [Description("Zip")]
        [DataMember]
        [Column(Name = "Zip")]
        public string Zip
        {
          get 
          {
              return this._Zip;
          }
          set 
          {
              this._Zip = value;
          }
        }


        private string _Phone;
        /// <summary>
        /// Phone
        /// </summary>
        [Description("Phone")]
        [DataMember]
        [Column(Name = "Phone")]
        public string Phone
        {
          get 
          {
              return this._Phone;
          }
          set 
          {
              this._Phone = value;
          }
        }

        #endregion
    }
}
